package com.scujj.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@TableName("jjbb_chat_records")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ChatRecords implements Serializable {
    @TableId("id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using= ToStringSerializer.class)
    private Long suid;
    @TableField(exist = false)
    private User suser;
    @JsonSerialize(using= ToStringSerializer.class)
    private Long guid;
    @TableField(exist = false)
    private User guser;
    private String type;
    private String content;
    private Date publishTime;
}
